load("js/luaclient.js");
/**
 * 调用lua脚本方法
 * @type {{}}
 */
var luaFuncs = {
    /**
     * 卡号密码
     * @param username
     * @param password
     * @return
     */
    input_account: function (username, password) {
        var map = new HashMap();
        map.put("method", "input_account");
        map.put("username", username);
        map.put("password", password);
        return sendAndReceive(map);
    },
    /**
     * 验证是否输入input框
     * @param id
     * @param value
     * @returns {Object}
     */
    checkIfInput : function(id,value){
        var map = new LinkedHashMap();
        map.put("method", "checkIfInput");
        map.put("id", id);
        map.put("value", value);
        return Boolean.valueOf(sendAndReceive(map));
    },
    /**
     * 登录按钮
     * @return
     */
    clickLoginBtn: function () {
        var map = new HashMap();
        map.put("method", "clickLoginBtn");
        return sendAndReceive(map);
    },
    /**
     * 刷新验证码的方法
     * @return
     */
    refeshImg: function () {
        var map = new HashMap();
        map.put("method", "refeshImg");
        return sendAndReceive(map);
    },

    /*
     * 帐户信息
     */
    accountInfo: function () {
        var map = new HashMap();
        map.put("method", "accountInfo");
        return sendAndReceive(map);
    },
    /*
     * 帐户信息
     */
    clickSms: function () {
        var map = new HashMap();
        map.put("method", "clickSms");
        return sendAndReceive(map);
    },
    /**
     * 保存图片
     * @return
     */
    store_Img: function () {
        var map = new HashMap();
        map.put("method", "store_Img");
        return sendAndReceive(map);
    },
}